<?php
	$id=$_GET['id'];
	$ttd = mysql_fetch_array(mysql_query("select ttd from setting where id_setting = $id"));

	$sql="update setting set ttd = '' where id_setting=$id";
	$qry=mysql_query($sql);
	if($ttd['ttd'] != ''){
		unlink("asset/images/$ttd[ttd]");
	}
	$url_sukses='utama.php?module=mod_setting';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>